<legend>Listado de Misiones</legend>
<tr>
<?php	
	echo $this->Html->link('Agregar Mision', array('action'=>'add'));
?>
</tr>
<div class="span11">
	<div class="row-fluid">
		<table class="table table-hover table-condensed">	
	   		<thead>
		        <tr>
		          	<th>Id</th>
		          	<th>Nombre</th>
		          	<th>Descripcion</th>
		          	<th>Logo</th>
		          	<th>Url</th>
		          	<th></th>
		        </tr>
	      	</thead>
	      	<tbody>
			<?php
				if (!empty($misiones)) {
			
					foreach ($misiones as $mision) {
						echo '
							<tr>
								<td>' . $mision['Persona']['id'] . '</td>
								<td>' . $mision['Persona']['nombre'] . '</td>
								<td>' . $mision['Persona']['descripcion'] . '</td>
								<td>' . $mision['Persona']['logo'] . '</td>
								<td>' . $mision['Persona']['url'] . '</td>
								<td>' . $this->Html->link('Editar', array('action'=>'edit', $mision['Mision']['id'])) .'</td>
							</tr>';
			
					}
				}
				else{
					echo '
						<tr>
							<td colspan="5" align="center">No se encontraron registros.</td>
						</tr>';
				}	
			?>
	      	</tbody>
		</table>
	</div>
</div>